/* eslint-disable */
import request from '@/utils/request'

// 开启积分营销
export function openPointSwitch(data) {
  return request({
    url: '/point',
    method: 'POST',
    data
  })
}
// 关闭积分营销
export function closePointSwitch(data) {
  return request({
    url: '/point',
    method: 'PUT',
    data
  })
}
// 开启积分营销
export function getPointList(params) {
  return request({
    url: '/point/list',
    method: 'GET',
    params
  })
}
// 获取签到积分配置
export function getPointSignRule(params) {
  return request({
    url: '/point/sign',
    method: 'GET',
    params
  })
}
// 设置签到积分配置
export function setPointSignRule(data) {
  return request({
    url: '/point/sign/rule',
    method: 'POST',
    data
  })
}
// 获取分享积分配置
export function getPointSignShare(params) {
  return request({
    url: '/point/share',
    method: 'GET',
    params
  })
}
// 设置分享积分配置
export function setPointSignShare(data) {
  return request({
    url: '/point/share/rule',
    method: 'POST',
    data
  })
}
// 获取积分抵现配置
export function getPointSignBuy(params) {
  return request({
    url: '/point/buy',
    method: 'GET',
    params
  })
}
// 设置积分抵现配置
export function setPointSignBuy(data) {
  return request({
    url: '/point/buy/rule',
    method: 'POST',
    data
  })
}
